<?php
/**
 * RedCross Application
 *
 * TODO: Add copyright string...
 */


class Core_Form_User_NextOfKin extends RedCross_Form
{
    public function init()
    {
        $this->addElement('text', 'first_name', array (
            'filters' => array('StringTrim'),
            'required' => true,
            'label' => "Fornavn",
        ));
        $this->addElement('text', 'last_name', array (
            'filters' => array('StringTrim'),
            'required' => true,
            'label' => "Etternavn",
        ));
        $this->addElement('text', 'phone_number', array(
            'filters' => array('StringTrim'),
            'validators' => array(
                array('Digits', true)
            ),
            'required' => true,
            'label' => 'Telefonnummer'
        ));

        $this->addElement('hidden', 'submit_nextofkin');
        $this->addElement('submit', 'submit', array(
            'required' => true,
            'ignore'   => true,
            'label'    => 'Legg til pårørende'
        ));
    }
}
